﻿
<script type="text/javascript">
    $(document).ready(function () {
        $("#VehiculeBrandId").kendoDropDownList({
            dataTextField: "Title",
            dataValueField: "Id",
            dataSource: {
                transport: {
                    read: {
                        dataType: "json",
                        //url: "@Url.Action("Brands", "VehiculeBrand")",
                        url: "http://localhost:55522/VehiculeBrand/Brands"
                    }
                }
            }
        });

        $("#VehiculeBrandId").data('kendoDropDownList');
    });
</script>
